/*
 * Copyright 2010 bedatadriven
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

/**
 * JacobGen generated file --- do not edit
 *
 * (http://www.bigatti.it/projects/jacobgen)
 */
package com.bedatadriven.mso.powerpoint;

import com.bedatadriven.mso.excel.XlBorderWeight;
import com.bedatadriven.mso.excel.XlColorIndex;
import com.bedatadriven.mso.excel.XlLineStyle;
import com.google.gwt.core.client.JavaScriptObject;

/** Wrapper for PowerPoint.ChartBorder*/
public class ChartBorder extends JavaScriptObject {

	protected ChartBorder() { }
	public native final void setColor( int value)/*-{
		this.Color = value;
	}-*/;

	public native final Integer getColor()/*-{
		return this.Color;
	}-*/;

	private native void _setColorIndex( int value)/*-{
		this.ColorIndex = value;
	}-*/;

	private native int _getColorIndex()/*-{
		return this.ColorIndex;
	}-*/;

  public final XlColorIndex getColorIndex() {
    return XlColorIndex.valueOf(_getColorIndex());
  }

  public final void setColorIndex(XlColorIndex color) {
    _setColorIndex(color.getValue());
  }

  public final void setLineStyle( XlLineStyle style) {
    _setLineStyle(style.getValue());
  }

	private native void _setLineStyle( int value)/*-{
		this.LineStyle = value;
	}-*/;

	private native int _getLineStyle()/*-{
		return this.LineStyle;
	}-*/;

  public final XlLineStyle getLineStyle() {
    return XlLineStyle.valueOf(_getLineStyle());
  }

	public native final void setWeight( Object value)/*-{
		this.Weight = value;
	}-*/;

  public final XlBorderWeight getWeight() {
    return XlBorderWeight.valueOf(_getWeight());
  }

	private native int _getWeight()/*-{
		return this.Weight;
	}-*/;

	public native final JavaScriptObject getParent()/*-{
		return this.Parent;
	}-*/;

	public native final PpApplication getApplication()/*-{
		return this.Application;
	}-*/;

}
